package com.dodoke.ojserver.service.impl;

import com.dodoke.ojserver.bean.Solution;
import com.dodoke.ojserver.bean.SourceCodeUser;
import com.dodoke.ojserver.mapper.SolutionAndSourceMapper;
import com.dodoke.ojserver.service.ISolutionAndSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SolutionAndSourceServiceImpl implements ISolutionAndSourceService {
    @Autowired
    private SolutionAndSourceMapper solutionAddSourceMapper;

    @Override
    public int addSolution(Solution solution) {
        return solutionAddSourceMapper.addSolution(solution);
    }

    @Override
    public int addSourceCodeUser(SourceCodeUser sourceCodeUser) {
        return solutionAddSourceMapper.addSourceCodeUser(sourceCodeUser);
    }
}
